<template>
	<div class="tpl16-title"
    :style="tplItemData.modulePadding || tplItemData.modulePadding ==0?'padding-top:'+tplItemData.modulePadding+'px;padding-bottom:'+tplItemData.modulePadding+'px;':'padding-top:5px;padding-bottom:5px;'">
    <div class="title-box" :style="{'background-image':'url('+tplItemData.pic+')'}">
        <h2 class="title" :style="{'color':tplItemData.titleColor?tplItemData.titleColor:'#1a1a1a'}">{{tplItemData.title}}</h2>
    </div>
  </div>
</template>

<script>
/**
 * @Author: yqe@360shop.cn
 * @Date: 2020年07月08日15:11:21
 * @Last Modified by: yqe@360shop.cn
 * @Last Modified time: 2020年07月08日15:11:21
 */
import Vue from 'vue'
import { NoticeBar } from 'vant'

Vue.use(NoticeBar)
export default Vue.extend({
  name: 'index',
  components: {
  },
  props: {
    tplItemData: {
      type: Object,
      default() {
        return {}
      }
    }
  },
  created() {
    // // console.log(this.tplItemData)
  }
})
</script>

<style lang="scss">
.tpl16-title{
  .title-box{
    padding: 30px 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 100%;
    .title{
      width: 28px;
      margin: 0 auto;
      font-size: 28px;
      line-height: 1.2;
      text-align:center;
      word-break:break-all;
    }
  }
}
</style>
